package cn.yh.shop.product.service.impl;

import java.util.HashMap;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.yh.shop.product.dao.AttributeDao;
import cn.yh.shop.product.model.Attribute;
import cn.yh.shop.product.service.IAttributeService;
@Service
public class AttributeServiceImpl implements IAttributeService {
	/**
	 * 商品属性数据访问对象
	 */
	@Autowired
	private AttributeDao attributedao;
	@Override
	public List<Attribute> getAttributes() {
		return attributedao.selectAttributes();
	}

	@Override
	public Attribute getAttrByCon(HashMap<String, String> map) {
		return attributedao.selectAttrByCon(map);
	}

}
